<template>
  <div class="page_root" :key="queryUpdateFlag" data-page-name="客户管理权限" data-page-identification="q_svz0w0xesx">
    <a-spin :spinning="pageLoading.loading" :tip="pageLoading.tip">
      <!-- begin vid_5omtgi0jba 容器_9q4cfhwsrd -->
      <al-box v-if="false" class="vid_5omtgi0jba">
        <!-- begin vid_x9vdj2vknl 客户画像管理-删除区域 -->
        <a-button v-permission="'3000001147_vid_x9vdj2vknl'" class="vid_x9vdj2vknl"> 客户画像管理-删除区域 </a-button>
        <!-- end vid_x9vdj2vknl 客户画像管理-删除区域 -->
        <!-- begin vid_d2n7suqn9s 客户画像管理-新建区域 -->
        <a-button v-permission="'3000001147_vid_d2n7suqn9s'" class="vid_d2n7suqn9s"> 客户画像管理-新建区域 </a-button>
        <!-- end vid_d2n7suqn9s 客户画像管理-新建区域 -->
        <!-- begin vid_sz5xgaij47 客户画像管理-导入区域 -->
        <a-button v-permission="'3000001147_vid_sz5xgaij47'" class="vid_sz5xgaij47"> 客户画像管理-导入区域 </a-button>
        <!-- end vid_sz5xgaij47 客户画像管理-导入区域 -->
        <!-- begin vid_zcvmpg8pm6 新建工厂 -->
        <a-button v-permission="'3000001147_vid_zcvmpg8pm6'" class="vid_zcvmpg8pm6"> 新建工厂 </a-button>
        <!-- end vid_zcvmpg8pm6 新建工厂 -->
        <!-- begin vid_th7pew6eus 客户画像管理-编辑工厂 -->
        <a-button v-permission="'3000001147_vid_th7pew6eus'" class="vid_th7pew6eus"> 客户画像管理-编辑工厂 </a-button>
        <!-- end vid_th7pew6eus 客户画像管理-编辑工厂 -->
        <!-- begin vid_urvpl2pwtp 客户画像管理-详情 -->
        <a-button v-permission="'3000001147_vid_urvpl2pwtp'" class="vid_urvpl2pwtp"> 客户画像管理-详情 </a-button>
        <!-- end vid_urvpl2pwtp 客户画像管理-详情 -->
        <!-- begin vid_xx02r7owvc 客户画像管理-删除工厂 -->
        <a-button v-permission="'3000001147_vid_xx02r7owvc'" class="vid_xx02r7owvc"> 客户画像管理-删除工厂 </a-button>
        <!-- end vid_xx02r7owvc 客户画像管理-删除工厂 -->
        <!-- begin vid_atozkpj0ee 客户画像管理-导入工厂 -->
        <a-button v-permission="'3000001147_vid_atozkpj0ee'" class="vid_atozkpj0ee"> 客户画像管理-导入工厂 </a-button>
        <!-- end vid_atozkpj0ee 客户画像管理-导入工厂 -->
        <!-- begin vid_4pby4s0hkf 客户画像管理-编辑区域 -->
        <a-button v-permission="'3000001147_vid_4pby4s0hkf'" class="vid_4pby4s0hkf"> 客户画像管理-编辑区域 </a-button>
        <!-- end vid_4pby4s0hkf 客户画像管理-编辑区域 -->
        <!-- begin vid_3w20zrbiiz 客户满意度管理-评价 -->
        <a-button v-permission="'3000001147_vid_3w20zrbiiz'" class="vid_3w20zrbiiz"> 客户满意度管理-评价 </a-button>
        <!-- end vid_3w20zrbiiz 客户满意度管理-评价 -->
        <!-- begin vid_nh2wvwfucn 例会管理-编辑 -->
        <a-button v-permission="'3000001147_vid_nh2wvwfucn'" class="vid_nh2wvwfucn"> 例会管理-编辑 </a-button>
        <!-- end vid_nh2wvwfucn 例会管理-编辑 -->
        <!-- begin vid_fbeavtottc 例会管理-删除 -->
        <a-button v-permission="'3000001147_vid_fbeavtottc'" class="vid_fbeavtottc"> 例会管理-删除 </a-button>
        <!-- end vid_fbeavtottc 例会管理-删除 -->
        <!-- begin vid_7ecgqnzfce 例会管理-新建 -->
        <a-button v-permission="'3000001147_vid_7ecgqnzfce'" class="vid_7ecgqnzfce"> 例会管理-新建 </a-button>
        <!-- end vid_7ecgqnzfce 例会管理-新建 -->
      </al-box>
      <!-- end vid_5omtgi0jba 容器_9q4cfhwsrd -->
    </a-spin>
  </div>
</template>
<script setup lang="tsx">
  import {
      h, ref, reactive, toRaw, markRaw, watch, computed,
      onBeforeMount, onMounted, onBeforeUnmount, onUnmounted, onActivated, onDeactivated
    } from "vue";
    import { useRoute, useRouter } from 'vue-router';
    const router = useRouter();
    const route = useRoute();
    import { get, post, put, del, request, requestWithHeaders } from '@/utils/http/Axios';
    import { cloneDeep, localGet, merge, getDifferenceArray, traversalTreeStructure, checkCaseCondition, renderStringInTemplate, handleBreadcrumbJump, throttle, permission, getComponentParamsValue } from '@/utils/index';
    import { isNullOrEmpty, isEmptyArr, isNullOrUnDef, isContained, isArray, isEmpty, isObject } from '@/utils/is';
    import dayjs from 'dayjs';
    import { getPagePcChartsDataSourceConvert } from '@/utils/chart';
    import { message, notification, Modal } from 'ant-design-vue'
    import { propertyFormatByNumber, propertyFormatByPercentage, propertyFormatByDate, parseSubFromDataList } from '@/utils/format';
    import colorTheme from '@/design/custom-theme.json';
    
    import UserTableRecords from '@/model/UserTableRecords';
    import { getAppBaseUrl } from '@/utils/index';
    import { sendToken } from "@/hooks/useIframeToken";
    import { useSystemStore } from "@/store/modules/system";
    const systemStore = useSystemStore();
    



      // 获取传入的流程ID和组件参数
      const props = defineProps({
            'processInstanceId': {
            type: [String,Number,Boolean],
            default: undefined,
        },
      })
      const immediateWatch = (source, callback) => {
        watch(source, callback, {deep: true,immediate: true })
      }



  /* -------------------------- 属性定义 -------------------------- */

      const setTimeOutList = [];
      const pageLoading = reactive({
        loading: false,
        tip: undefined
      });
      const authInfo = localGet('app-user-store');




      // 处理校验
      const setSubFormName =(parentInfo, name)=>{
        return [parentInfo.parents, parentInfo.cycleIndex, name];
      }


  /* ========================== 属性定义 ========================== */


  /* -------------------------- 元素数据引用 -------------------------- */


  /* ========================== 元素数据引用 ========================== */


  /* -------------------------- 页面数据 -------------------------- */


  /* ========================== 页面数据 ========================== */



  /* -------------------------- 响应 -------------------------- */

  /* ========================== 响应 ========================== */


  /* -------------------------- 函数 -------------------------- */

  /* ========================== 函数 ========================== */


  /* -------------------------- 页面参数 -------------------------- */

    const pageParameter_state = reactive({
        'processInstanceId': props.processInstanceId ?? route.query.processInstanceId,
    })

  /* ========================== 页面参数 ========================== */


  /* -------------------------- 组件事件处理方法 -------------------------- */

    // ---------------------------- 组件数据同步 ----------------------------

    // ============================ 组件数据同步 ============================


  /* ========================== 组件事件处理方法 ========================== */


  /* -------------------------- 生命周期 -------------------------- */
  // 用于参数变更后重新执行自定义指令
      const queryUpdateFlag = ref(0);
      onMounted(() => { ;

    });

    onUnmounted(() => {
      // 销毁定时器
      setTimeOutList.forEach(({ repeat, timer }) => {
        repeat ?  clearInterval(timer): clearTimeout(timer);
      });
    });

  /* ========================== 生命周期 ========================== */


  /* -------------------------- 数据关联处理 -------------------------- */





  /* -------------------------- 表单数据同步 -------------------------- */
  /* ========================== 表单数据同步 ========================== */

  /* ========================== 数据关联处理 ========================== */


  /* -------------------------- 不同组件自定义的处理逻辑 -------------------------- */

  /* ========================== 不同组件自定义的处理逻辑 ========================== */


  // ================================定制化逻辑========================================
</script>
<style lang="less" scoped>
  .page_root {
  width: 100%;
  height: 100%;
  overflow: auto;
  }
  .page_root :deep(.@{ant-prefix}-spin-nested-loading),
  .page_root :deep(.@{ant-prefix}-spin-container)
   {
      height: 100%;
  }
  .page_root :deep(.@{ant-prefix}-spin-container .@{ant-prefix}-table-wrapper)
   {
      display: flex;
      flex-flow: column nowrap;
      justify-content: flex-start;
  }
  .page_root :deep(.@{ant-prefix}-table)
   {
    flex: auto;
    overflow: auto;
  }
  .table-moreBtn_down {
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 100px;
  }

  .table-moreBtn_menu :deep(.table-moreBtn_menu-item):hover {
    background: #ebf1ff;
  }

  /*  表格树结构样式处理，展开按钮层级增加*/
  :deep(.@{ant-prefix}-table-row-expand-icon) {
    z-index: 1;
  }
  /*  表格树结构 由于每个表格项采用自定义组件，使用绝对定位布局，开启树结构导致显示异常，暂时使用层级定位位置 */
  :deep(.@{ant-prefix}-table-row-level-1 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 15px !important;
    width: calc(100% - 15px);
  }
  :deep(.@{ant-prefix}-table-row-level-2 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 30px !important;
    width: calc(100% - 30px);
  }
  :deep(.@{ant-prefix}-table-row-level-3 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 45px !important;
    width: calc(100% - 45px);
  }
  :deep(.@{ant-prefix}-table-row-level-4 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 60px !important;
    width: calc(100% - 60px);
  }

  /* 穿梭框改变默认样式，为根据组件样式控制左右栏宽度。 */
  :deep(.@{ant-prefix}-transfer-list)
   {
      height: 100%;
      width: 50%;
  }
  .vid_5omtgi0jba{
      padding-top:24px;
      padding-bottom:24px;
      background-color:#F50A0A
  }
  .vid_d2n7suqn9s{
      box-shadow:0px 0px 0px 0px
  }
  .vid_zcvmpg8pm6{
      box-shadow:0px 0px 0px 0px
  }
  .vid_th7pew6eus{
      box-shadow:0px 0px 0px 0px
  }
  .vid_atozkpj0ee{
      box-shadow:0px 0px 0px 0px
  }
  .vid_4pby4s0hkf{
      box-shadow:0px 0px 0px 0px
  }
  .vid_3w20zrbiiz{
      box-shadow:0px 0px 0px 0px
  }
  .vid_fbeavtottc{
      box-shadow:0px 0px 0px 0px
  }
</style>